import java.util.Scanner;

/**
 * 
 */

/**
 * @author HOANB
 * 
 */
public class ReverseString {

	private static Scanner input;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		input = new Scanner(System.in);
		System.out.println("Enter a string: ");
		String str = input.nextLine();
		for (int i = str.length() - 1; i > -1; i--) {
			System.out.print(str.charAt(i));
		}
	}
}
